package com.xiao.hao.convertor;


import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
import com.xiao.hao.config.LocalDateTimeConfig;
import com.xiao.hao.req.XhParamsInfoInsertReq;
import com.xiao.hao.req.XhParamsInfoQueryPageReq;
import com.xiao.hao.req.XhParamsInfoUpdateReq;
import com.xiao.hao.resp.XhParamsInfoResp;
import com.xiao.hao.entity.XhParamsInfo;

/**
*
*
* @Description 变量表数据 类型转换
* @Author xiaohao
* @Date 2025-03-06 17:15:39
*/
@Mapper(uses = {LocalDateTimeConfig.class}, componentModel = "spring")
public interface XhParamsInfoConvertor {

    XhParamsInfoConvertor INSTANCE = Mappers.getMapper(XhParamsInfoConvertor.class);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhParamsInfo
    * @author xiaohao
    * @date 2025-03-06 17:15:39
    */
    XhParamsInfo reqToEntity(XhParamsInfoInsertReq req);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhParamsInfo
    * @author xiaohao
    * @date 2025-03-06 17:15:39
    */
    XhParamsInfo reqToEntity(XhParamsInfoUpdateReq req);


    /**
    * 功能描述:
    *
    * @param entity
    * @return com.xiao.hao.resp.XhParamsInfoResp
    * @author xiaohao
    * @date 2025-03-06 17:15:39
    */
    XhParamsInfoResp entityToResp(XhParamsInfo entity);

    /**
    * 功能描述:
    *
    * @param list
    * @return java.util.List<com.xiao.hao.resp.XhParamsInfoResp>
    * @author xiaohao
    * @date 2025-03-06 17:15:39
    */
    List<XhParamsInfoResp> entityListToRespList(List<XhParamsInfo> list);
}



